<?hh <<__EntryPoint>> function main(): void {
$image = imagecreatetruecolor(150, 150);

$grey = imagecolorallocate($image,6,6,6);
$gray = imagecolorallocate($image,15,15,15);

$half =  imagefilledarc ( $image, 75, 75, 70, 70, 0, 180, $grey, IMG_ARC_PIE );
$half2 =  imagefilledarc ( $image, 75, 75, 70, 70, 0, -180, $gray, IMG_ARC_PIE );

$gamma = imagegammacorrect($image, 1.0, 5.0);

if ($gamma){
    ob_start();
    imagepng($image, '', 9);
    $img = ob_get_contents();
    ob_end_clean();
}

echo md5(base64_encode($img));
}
